all:server client

server:server.cpp request.pb.cc ./include/codec.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib -lprotobuf -lz -lmuduo_net -lmuduo_base

client:client.cpp request.pb.cc ./include/codec.cc
	g++ -o $@ $^ -std=c++11 -I./include -L./lib -lprotobuf -lpthread -lz -lmuduo_net -lmuduo_base

.PHONY:clean
clean:
	rm -f server client
